<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Controller as a;
use App\Http\Controllers\houtai as s;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::match(['get','post'],'houtai',[s::class,'index']);
Route::match(['get','post'],'/houtai/add',[s::class,'add']);
Route::match(['get','post'],'/houtai/add_ok',[s::class,'add_ok']);
Route::match(['get','post'],'/houtai/delete',[s::class,'delete']);
Route::match(['get','post'],'/houtai/delete_max',[s::class,'delete_max']);
Route::match(['get','post'],'/houtai/ssk',[s::class,'ssk']);
Route::match(['get','post'],'/houtai/add_user',[s::class,'add_user']);
Route::match(['get','post'],'/houtai/add_user_ok',[s::class,'add_user_ok']);
Route::match(['get','post'],'/houtai/login_3',[s::class,'login_3']);
Route::match(['get','post'],'/houtai/table',[s::class,'table']);
Route::match(['get','post'],'/houtai/table_user',[s::class,'table_user']);
Route::match(['get','post'],'/houtai/table_user_cha',[s::class,'table_user_cha']);
Route::match(['get','post'],'/houtai/table_cha',[s::class,'table_cha']);
Route::match(['get','post'],'/houtai/getMenuList',[s::class,'getMenuList']);
Route::match(['get','post'],'/houtai/buildMenuChild',[s::class,'buildMenuChild']);
Route::match(['get','post'],'/houtai/getSystemInit',[s::class,'getSystemInit']);
// Route::get('/', function () {
// 	return view("index");
// });
Route::match(['get','post'],'/',[a::class,'index']);
Route::match(['get','post'],'index_center',[a::class,'index_center']);
Route::match(['get','post'],'cleaning_index',[a::class,'cleaning_index']);
Route::match(['get','post'],'address',[a::class,'address']);
Route::match(['get','post'],'address_add',[a::class,'address_add']);
Route::match(['get','post'],'address_search',[a::class,'address_search']);
Route::match(['get','post'],'floor',[a::class,'floor']);
Route::match(['get','post'],'adders',[a::class,'adders']);
Route::match(['get','post'],'address_searcher',[a::class,'address_searcher']);
Route::match(['get','post'],'order',[a::class,'order']);
Route::match(['get','post'],'shanchu',[a::class,'shanchu']);
Route::match(['get','post'],'cleaning_er',[a::class,'cleaning_er']);
Route::match(['get','post'],'tjia',[a::class,'tjia']);
Route::match(['get','post'],'affirm_order',[a::class,'affirm_order']);
Route::match(['get','post'],'sheet',[a::class,'sheet']);
Route::match(['get','post'],'WeiMeng',[a::class,'WeiMeng']);
Route::match(['get','post'],'floor_er',[a::class,'floor_er']);
Route::match(['get','post'],'fooljia',[a::class,'fooljia']);
Route::match(['get','post'],'baomu',[a::class,'baomu']);

Route::post('/index_center', function () {
    return view("index_center");
});
//member
Route::match(["get","post"],"login_index",[a::class,"login_index"]);
//登陆
Route::match(["get","post"],"login",[a::class,"login"]);
Route::match(["get","post"],"login_ok",[a::class,"login_ok"]);
//注册
Route::match(["get","post"],"register",[a::class,"register"]);
Route::match(["post"],"register_ok",[a::class,"register_ok"]);
//退出
Route::match(["get","post"],"tui_ok",[a::class,"tui_ok"]);
//我的钱包
Route::match(["get","post"],"money",[a::class,"money"])->middleware("Ack");
//充值
Route::match(["get","post"],"member",[a::class,"member"]);
//充值会员
Route::match(["get","post"],"cwhy",[a::class,"cwhy"]);
//会员充值
Route::match(["get","post"],"recharge",[a::class,"recharge"])->middleware("Ack");
Route::match(["get","post"],"recharge_ok",[a::class,"recharge_ok"]);
//我的订单
Route::match(['get','post'],'myorder',[a::class,'myorder']);
//消息中心
Route::match(['get','post'],'news',[a::class,'news']);
//vip
Route::match(['get','post'],"vip",[a::class,'vip']);
// Route::get('/index_center', function () {
// 	return view("index_center");
// });

// Route::get('/myorder', function () {
// 	return view("myorder");
// });
//Route::group (['admin_'],function (){
//    Route::match(['get','post'],"admin_vip",function (){
//        return '1234';
//    });
//});